<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script type="text/javascript">
			var person={
				firstname:'陈',
				lastname:'强',
				age:18,
				fullName:function(){
					return this.firstname+this.lastname
				}
			}
			
			console.log(person.fullName())
			person.address='ax'
			person.fullName2=function(){
				return this.firstname+this.lastname+','+this.age
			}
			console.log(person)
			console.log(person.fullName2())
		</script>
	</body>
</html>
